# coding=utf-8
# IP 检测
from urllib2 import urlopen


class IP(object):

    @staticmethod
    def get_ip():
        """查询公网IP"""
        my_ip = urlopen('http://ip.42.pl/raw').read()
        return my_ip

